package lab02.test37;

public class Graduate extends Student{
    //需要平均超过80分才能够通过
    Graduate(String n,double a,double b,double c){
        this.name=n;
        this.scores[0]=99;
        this.scores[1]=97;
        this.scores[2]=88;
        this.average();
    }

    public void Display(){
        if(this.average()>=80){
            System.out.println(name+"通过!!!");
        }
        else{
            System.out.println(name+"没通过!!!");
        }
    }

}
